<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Image Test</title></head>
<body>
<h1>Image test</h1>
<p>Quick test file to test loading image code.</p>
<pre title="image_file foo.png">
# assumes matplotlib is installed
import pylab
pylab.plot([1,2,1])
pylab.savefig('foo.png')
</pre>

<p>Another example to make sure that multiple images can be generated on a single page.</p>
<pre title="image_file foo2.png">
# assumes matplotlib is installed
import pylab
pylab.plot([1,3,1])
pylab.savefig('foo2.png')
</pre>

<p>This example has no image name specified; The code should
be simply styled, and an error message should be written below.</p>
<pre title="image_file">
# assumes matplotlib is installed
import pylab
pylab.plot([1,2,1])
pylab.savefig('no_name.png')
</pre>

<h2>Bugs</h2>
<ul>
  <li>With these matplotlib example, we need to run the code twice (at least under Mac OS)
  to make an image appear or be redrawn properly.</li>
</ul>
<p><a href="index.html">Back to the test index</a></p>
</body>
</html>
